<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="__MODES__/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="__CSS__/style.css" />
		<link href="__MODES__/assets/css/codemirror.css" rel="stylesheet">
		<link rel="stylesheet" href="__MODES__/assets/css/ace.min.css" />
		<link rel="stylesheet" href="__MODES__/assets/css/font-awesome.min.css" />
		<!--[if IE 7]>
		  <link rel="stylesheet" href="__MODES__/assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="__MODES__/assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="__MODES__/assets/js/jquery.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
		<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='__MODES__/assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
		<script type="text/javascript">
		 window.jQuery || document.write("<script src='__MODES__/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
		</script>
		<![endif]-->
		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='__MODES__/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
		</script>
		<script src="__MODES__/assets/js/bootstrap.min.js"></script>
		<script src="__MODES__/assets/js/typeahead-bs2.min.js"></script>
		<!-- page specific plugin scripts -->
		<script type="text/javascript" src="__JS__/H-ui.js"></script>
		<script type="text/javascript" src="__JS__/H-ui.admin.js"></script>
		
		<script  src="__PLUGINS__/layer/layer.js"></script>
	    <script  src="__PLUGINS__/common.js"></script>
		<title>文章列表</title>
	</head>

<body>
<section id="container" class="">
	<section id="main-content">
        <section class="wrapper">
		<div class="row">
		    <div class="col-md-12">
		        <div class="portlet light">
		            <div class="portlet-body">
		                <div class="dataTables_wrapper no-footer">
		            		<form name="agent" action="{:Url('/Admin/Auths/auths_edit')}?id={$detail.id}" role="form" class="form-horizontal" novalidate="novalidate">
		            			<div class="form-group">
		                            <label class="control-label col-xs-3 text-right">权限分类 
		                                <span class="required"> * </span>
		                            </label>
		                            <div class="col-xs-9">
		                                <select class="form-control" id="ag_cate" name="ag_cate">
			                				{foreach name="classes" item="v"}
			                				<option value="{$v.class_id}" {if condition="$v['class_id'] eq $detail['class_id']"} selected {/if}>{$v.class_name}</option>
			                				{/foreach}
			                			</select>
		                            </div>
		                        </div>
		                        <div class="form-group">
		                            <label class="control-label col-xs-3 text-right">权限主体 
		                                <span class="required"> * </span>
		                            </label>
		                            <div class="col-xs-9">
		                                <input type="text" id="ag_name" name="ag_name" class="form-control" placeholder="权限主体" value="{$detail.name}" />
		                            </div>
		                        </div>
		                		<div class="form-group">
		                            <label class="control-label col-xs-3 text-right">权限名字 
		                                <span class="required"> * </span>
		                            </label>
		                            <div class="col-xs-9">
		                               <input type="text" id="ag_title" name="ag_title" class="form-control" placeholder="权限名字" value="{$detail.title}" />
		                            </div>
		                        </div>
		                		<div class="form-group">
		                            <label class="control-label col-xs-3 text-right">权限类型 
		                                <span class="required"> * </span>
		                            </label>
		                            <div class="col-xs-9">
		                                <select class="form-control" id="ag_type" name="ag_type">
			                				<option value="1" {if $detail['type'] == 1 } selected {/if}>时时验证</option>
			                				<option value="2" {if $detail['type'] == 2 } selected {/if}>登录验证</option>
			                			</select>
		                            </div>
		                        </div>
		                		<div class="form-group">
		                            <label class="control-label col-xs-3 text-right">权限状态 
		                                <span class="required"> * </span>
		                            </label>
		                            <div class="col-xs-9">
		                                <select class="form-control" id="ag_status" name="ag_status">
			                				<option value="1" {if $detail['status'] == 1} selected {/if}>启用</option>
			                				<option value="0" {if $detail['status'] == 0} selected {/if}>禁用</option>
			                			</select>
		                            </div>
		                        </div>
		                        <div class="form-group">
		                            <label class="control-label col-xs-3 text-right">权限条件 
		                                <span class="required"> * </span>
		                            </label>
		                            <div class="col-xs-9">
		                                <input type="text" id="ag_condition" name="ag_condition" class="form-control" placeholder="权限条件" value="{$detail.condition}" />
		                            </div>
		                        </div>
		                	</form>
		                	<div class="form-actions right">
		                		<label class="control-label col-xs-3 text-right">&nbsp;</label>
		                		<div class="col-xs-9">
		                        	<button type="button" id="agent-save" class="btn btn-danger">确认保存</button>
		                		</div>
		                    </div>
		                </div>
		            </div>
		        </div>
		    </div>
		</div>
		
		</section>
	</section>
</section>
<script type="text/javascript">
	var page_url = "{:Url('/Admin/Auths/auths_edit')}";
</script>
<script src="__JS__/auths.js" type="text/javascript"></script>
</body>
</html>
